package com.mobile.challenge.api;

import com.mobile.challenge.bean.BaseBean;
import com.mobile.challenge.bean.DataBean;

import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.Query;


/**
 * @author <a href="mailto:jenly1314@gmail.com">Jenly</a>
 */
public interface MobileService {

    /**
     * 登录
     */
    @POST("user/login")
    Observable<BaseBean<DataBean>> login(@Query("name") String username, @Query("password") String password);


}
